<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>查看文档</title>
		<script src="js/jquery.js" type="text/javascript"></script>
		<script src="js/table.js" type="text/javascript"></script>
	</head>
	<body>	
		<div class="div_title">
			<s:if test="type==1">
				工作动态/新闻
			</s:if>
			<s:elseif test="type==2">
				通知公告
			</s:elseif>
			<s:elseif test="type==3">
				赤子情怀
			</s:elseif>
			<s:elseif test="type==4">
				捐赠查询
			</s:elseif>
			<s:elseif test="type==5">
				基金会简介
			</s:elseif>
			<s:elseif test="type==6">
				组织机构
			</s:elseif>
			<s:elseif test="type==7">
				基金会章程
			</s:elseif>
			<s:elseif test="type==8">
				管理办法
			</s:elseif>
			<s:elseif test="type==9">
				联系方式
			</s:elseif>
			<s:elseif test="type==10">
				捐赠途径
			</s:elseif>
			<s:elseif test="type==11">
				捐赠流程
			</s:elseif>
			<s:elseif test="type==12">
				鸣谢办法
			</s:elseif>
			<s:elseif test="type==13">
				免税文件
			</s:elseif>
			<s:elseif test="type==14">
				下载专区
			</s:elseif>
			<s:elseif test="type==15">
				基金使用记录
			</s:elseif>
			<s:else>			
				搜索结果		
			</s:else>
		</div>
		<div class="div_article">
			<s:form namespace="/manage" id="mainForm" action="viewArticles" method="get">				
				<input type="hidden" name="part" id="part" value="${part}"/>
				<input type="hidden" name="searchCondition" id="searchCondition" value="${searchCondition}"/>
				<input type="hidden" name="type" id="type" value="${type}"/>
				<input type="hidden" name="page.pageNo" id="pageNo" value="${page.pageNo}"/>
				<input type="hidden" name="page.orderBy" id="orderBy" value="${page.orderBy}"/>
				<input type="hidden" name="page.order" id="order" value="${page.order}"/>
				<table class="table_items">
					<thead>
						<tr>
							<th width="650">
								<s:if test="type==4">
									<a href="http://alumni.ustb.edu.cn/listPersonalDonate.do" style="margin-left:470px;font-size:16px;color:red;font-weight:bold;">点击查询捐赠动态</a>
								</s:if>
							</th>
							<th>
								
							</th>
						</tr>
					</thead>
					<tbody>
						<s:iterator value="page.result">
							<tr>
								<td>
									<font color="#9a0000">• </font><a href="manage/viewArticle.action?part=${part}&uuid=${uuid}">${title}</a>
								</td>
								<td>
									<s:date name="updateDate" format="yyyy-MM-dd"/>
								</td>
							</tr>
						</s:iterator>
					</tbody>
				</table>
				<div id="divPageController">
					共${page.totalCount}条&nbsp;&nbsp;共${page.totalPages}页&nbsp;&nbsp;第${page.pageNo}页&nbsp;&nbsp;&nbsp;&nbsp;
					<a href="javascript:jumpPage(1)">首页</a>
					<s:if test="page.hasPre"><a href="javascript:jumpPage(${page.prePage})">上一页</a></s:if>
					<s:if test="page.hasNext"><a href="javascript:jumpPage(${page.nextPage})">下一页</a></s:if>
					<a href="javascript:jumpPage(${page.totalPages})">末页</a>
				</div>
			</s:form>
		</div>
	</body>
</html>